
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>Title</title>
</head>
<body>
<form>
    <p class="title">绑定数币网帐号
    <p><input type="text" name="mobilephone" id="mobilephone" placeholder="请输入手机号">
    <p><input type="password" name="pwd" class="pwd" id="pwd"placeholder="设置登陆密码">
    <p><input class="submit enable" type="button" onclick="javascript:registerUser()" value="注册" >
</form>


</body>
<script>

    function loginUser(){
        getQueryString("openid")
        $.ajax( {
            url:ctx+'/user/login',// 跳转到 action
            data:{
                userName : $("#userIpt").val(),
                passWord : $("#passwordIpt").val()
            },
            type:'post',
            cache:false,
            dataType:'json',
            success:function(data) {
                var jsonStr=data;
            },
            error : function() {
                alert("异常！");
            }
        });
    }
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    }
</script>
</html>
